/* eslint-disable */
import { aggregateMenusList, addAggregateMenus, editAggregateMenus, delAggregateMenus } from '@/api/conectPageApi'
const conectPage = {
    namespaced: true,
    state: {
        terminal: ''
    },
    getters: {},
    mutations: {},
    actions: {
        AggregateMenusList({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                aggregateMenusList(params).then(res => {
                    resolve(res)
                })
            })
        },
        AddAggregateMenus({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                addAggregateMenus(params).then(res => {
                    resolve(res)
                })
            })
        },
        EditAggregateMenus({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                editAggregateMenus(params).then(res => {
                    resolve(res)
                })
            })
        },
        DelAggregateMenus({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                delAggregateMenus(params).then(res => {
                    resolve(res)
                })
            })
        }
    }
}
export default conectPage